n=int(input())
m=int(input())
x="*"*m
for i in range(n):
    print(x)